<!DOCTYPE html>
<html lang="zh-cn">
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<meta http-equiv="X-UA-Compatible" content="IE=edge">
		<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
		<meta name="renderer" content="webkit">
		<title>修改管理员资料</title>
		<import type='css' file="admin.pintuer4.css.pintuer" />
		<import type='css' file="admin.pintuer4.css.admin" />
	</head>

	<body>
		<include file="Public:header" />
		<!--内容-->
		<div class="admin" style="width:80%;margin:0 auto;">
			<form method="post" action="{:U('Admin/admin_update')}" class="form-x">
			<input type="hidden" name="id" value="{$obj.id}">
			<div class="form-group">
				<div class="label"><label for="name">昵称</label></div>
				<div class="field">
					<input type="text" class="input input-small" id="name" name="name" size="30" value="{$obj.name}" data-validate="required:请填写账号"/>
				</div>
			</div>
			<div class="form-group">
				<div class="label"><label for="account">账号</label></div>
				<div class="field">
					<input type="text" class="input input-small" id="account" name="account" size="30" value="{$obj.account}" data-validate="required:请填写账号"/>
				</div>
			</div>
			
			<div class="form-group">
				<div class="label"><label for="password">密码</label></div>
				<div class="field">
					<input type="text" class="input input-small" id="password" name="password" placeholder="密码长度至少8位" size="30"/>
				</div>
			</div>
			<div class="form-group">
				<div class="label"><label for="role_id">角色</label></div>
				<div class="field">
				<select class="input" id="role_id" name="role_id">
					<volist name="role" id="r">
					<if condition="$r.id eq $obj.role_id">
					<option value="{$r.id}" selected>{$r.name}</option>
					<else/>
					<option value="{$r.id}">{$r.name}</option>
					</if>
					</volist>
				</select></div>
				</div>
			<div class="form-button">
			<button class="button border-green" type="submit">修改</button>
			</div>
			</form>

		</div>
		<!--底部-->
		
		<import type='js' file="admin.pintuer4.js.jquery" />
		<import type='js' file="admin.pintuer4.js.pintuer" />
		<import type='js' file="admin.pintuer4.js.respond" />
		<import type='js' file="admin.pintuer4.js.layer" />
		<import type='js' file="admin.pintuer4.js.admin" />
		<script>
			$(function() {
				
				//大于移动端800宽度才弹出提示
				if ($(window).width() >= 800) {
					layer.open({
						type: 1,
						shade: false,
						title: false, //不显示标题
						area: ['420px', '640px'],
						content: $('#alert-talk'), //捕获的元素
						cancel: function(index) {
							layer.close(index);
						}
					});
				}
			});
		</script>
	</body>

</html>